#include "dialogcompass.h"
#include "ui_dialogcompass.h"

DialogCompass::DialogCompass(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DialogCompass)
{
    ui->setupUi(this);
    //ui->checkBox->setTristate(true);
    //ui->openGLWidget->setCN(true);
}

DialogCompass::~DialogCompass()
{
    delete ui;
}

void DialogCompass::on_horizontalSlider_valueChanged(int value)
{
    ui->openGLWidget->setDirection(value/10.f);
}

void DialogCompass::on_checkBox_stateChanged(int arg1)
{
    ui->openGLWidget->setPointerMove(arg1==Qt::Checked);
}

void DialogCompass::on_checkBox_2_stateChanged(int arg1)
{
    ui->openGLWidget->setCN(arg1==Qt::Checked);
}
